'''
Created on 2012-9-19

@author: infear
'''
class Foobar(object):
    def __init__(self,value=42):
        self.menu=value

class A(object):
    def __init__(self):
        self.a="a"

class B(A):
    def __init__(self):
        A.__init__(self)
        self.b="b"

class C(B):
    def __init__(self):
        super(C,self).__init__();
        self.c="c"
        
class enctangle(object):
    def __init__(self):
        self.w=0
        self.h=0
    def setSize(self,w):
        self.w=w[0]
        self.h=w[1]
    def getSize(self):
        return self.w,self.h
    
    size=property(getSize,setSize)
    
bar=Foobar(value='pp')
print bar.menu

c=C();
print c.a,c.b,c.c

e=enctangle()
e.size=10,10
print e.w
print e.size